cssselector: Ensure we do not index out of bounds
authorDaniel Boles <dboles@src.gnome.org>
Tue, 1 Aug 2017 18:57:51 +0000 (19:57 +0100)
committerDaniel Boles <dboles@src.gnome.org>
Tue, 1 Aug 2017 19:17:02 +0000 (20:17 +0100)
commit79bbd4aca5be5dd702d9b484b06f65b8bf7a1b2d
tree10aca03cee3ae6cbfe12689bf6ec53f956e34f88
parentfc619706b7d606fd627b5502b48a7e920e922ca3
cssselector: Ensure we do not index out of bounds

This would only happen if the last element was deprecated, but it should
be avoided anyway.

CID 1388852 (#1 of 1): Out-of-bounds read (OVERRUN)
12. overrun-local: Overrunning array pseudo_classes of 16 32-byte
elements at element index 16 (byte offset 512) using index i + 1U (which
evaluates to 16).
gtk/gtkcssselector.c